package user.config;


import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {
    /*@Bean("userQueue")
    public Queue userQueue() {
        return QueueBuilder.durable("user.queue").build();
    }

    @Bean("userExchange")
    public FanoutExchange userExchange() {
        return ExchangeBuilder.fanoutExchange("user.exchange").durable(true).build();
    }

    @Bean("userBinding")
    public Binding userBinding(@Qualifier("userQueue") Queue userQueue, @Qualifier("userExchange")FanoutExchange userExchange) {
        return BindingBuilder.bind(userQueue).to(userExchange);
    }*/
}
